import math
n=input()
max_=float('-inf')
min_=float('inf')
for i in n:
    if i > max_:
        max_=i
    if i < min_:
        min_=i
print(max)
print(min)
def r(n):
    if not n:
        return 0
    else:
        return(not int(n[0])%2)+r(n[1:])
print(r(n))

count=0
while(n>o):
    count=count+1
print('kol vo cifr ravna:',count)
   
sqrt_number = math.sqrt(input_number)
print(sqrt_number == int (sqrt_number))
